/**
 * @author SilverBiology, LLC
 * @website http://code.google.com/p/gbif-spreadsheet-processor/
*/
Ext.namespace('GBIF');
Ext.namespace('GBIF.GeoSpatial')

GBIF.GeoSpatial.BUS = new Ext.util.Observable();
GBIF.GeoSpatial.BUS.addEvents('addTab'); 

Ext.onReady(function(){

	// Disable browser right click
	Ext.fly(document.body).on('contextmenu', function(e, target) {
		e.preventDefault();
	});
	
	this.geoSpatialPortal = new GBIF.GeoSpatial.GeoSpatialPortal({
			showLayer: true
		,	showMenu: true
	});

	var mainEntry = new Ext.Viewport({
			layout: 'border'
		, items: [{
					region: 'center'
				,	border: false
				,	id: 'scviewport'
				,	layout: 'fit'
				,	tbar: [{
							xtype: 'label'
						,	html: '<div style="font-size:15px; font-weight:bold; height:20px;color:#1F527C;padding-left:10px;">GPAAMP Viewer</div>'
					}]
				,	items: [ 
						this.geoSpatialPortal
					]
			}] 	
	});

});